package com.nan.hrm.domain;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author N
 * @since 2021-09-13
 */
@TableName("t_meal_role")
public class MealRole extends Model<MealRole> {

    private static final long serialVersionUID = 1L;

    @TableId("meal_id")
    private Long mealId;
    @TableField("role_id")
    private Long roleId;


    public Long getMealId() {
        return mealId;
    }

    public void setMealId(Long mealId) {
        this.mealId = mealId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.mealId;
    }

    @Override
    public String toString() {
        return "MealRole{" +
        ", mealId=" + mealId +
        ", roleId=" + roleId +
        "}";
    }
}
